package com.chixing.ih.module.programmer.service;

import com.chixing.ih.module.programmer.pojo.Programmer;
import com.chixing.ih.module.programmer.pojo.dto.*;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘岩
 * Date: 2020-10-01
 * Time: 21:09
 *
 * @version 1.0
 */
public interface IProgrammerService {

    boolean savePersonalInfo(Programmer programmer);


    boolean saveAccountInfo(Programmer programmer);

    long listAllNum();


    Programmer getProgrammerInfo(long programmerId);

    boolean updatePassword(ProgrammerDTO programmerDTO);

    boolean savePerIntroduce(Programmer programmer);

    boolean updateProgrammerTime(long programmerId);

    ProgrammerAccountDTO getProgrammerAccount(long programmerId);

    PerIntroduceDTO getPerIntroduce(long programmerId);

    public List<Map<String, Object>> searchPage(String keyword, int pageNo, int pageSize) throws Exception;

    List<ProgrammerHomeDTO> getProgrammers();

    List<RecommendProgrammer>getRecommend(String userCareer, Integer userId);
}
